package com.self.campussecondhandmarket.common;

/**
 * Author: Vincent
 * <p> DateTime: 2024/8/5 21:26
 * <p> Description: 线程副本
 * <p>
 **/
public class BaseContext {
	
	private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();
	
	public static Long getId() {
		return threadLocal.get();
	}
	

	public static void setId(Long value) {
		threadLocal.set(value);
	}
	

	public static void removeId() {
		threadLocal.remove();
	}
}
